$(function () {
    $("#addIcon").click(function () {
        $.ajax({
            url: basePath + 'addIcon',
            method: 'post',
            data: $("#addIconForm").serialize(),
            success: function (result) {
                if (result.status) {
                    $('#myModal').modal('hide');
                    $.post(basePath + "iconList");
                } else {
                    alert('执行失败');
                }
            }
        });
    });
});
	